From: Stefan Monnier Date: Tue, 15 Sep 2009 15:29:50 +0000 (+0000) Subject: * Makefile.in (compile-onefile): Use byte-compile-refresh-preloaded. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10462 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=63bff323fae67bb08ad79cded7b046a02b706a1b;p=emacs.git * Makefile.in (compile-onefile): Use byte-compile-refresh-preloaded. * emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Don't autoload. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 532c89656c1..9e7a705f80a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2009-09-15 Stefan Monnier + + * Makefile.in (compile-onefile): Use byte-compile-refresh-preloaded. + * emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): + Don't autoload. + 2009-09-15 Stephen Eglen * iswitchb.el (iswitchb-read-buffer): When selecting a match from diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 55d40b7116b..66ef1d279a5 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -1288,7 +1288,9 @@ ELCFILES = \ # src/Makefile.in to rebuild a particular Lisp file, no questions asked. compile-onefile: @echo Compiling $(THEFILE) - @$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(THEFILE) + # Use byte-compile-refresh-preloaded to try a work around some of + # the most common bootstrapping problems. + @$(emacs) -l bytecomp.el -f byte-compile-refresh-preloaded $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(THEFILE) # Files MUST be compiled one by one. If we compile several files in a # row (i.e., in the same instance of Emacs) we can't make sure that diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 12052f7b4c6..421db38879f 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -4394,7 +4394,6 @@ already up-to-date." (prin1-to-string (cdr err))) nil)))) -;;;###autoload (defun byte-compile-refresh-preloaded () "Reload any Lisp file that was changed since Emacs was dumped. Use with caution."